<?php
namespace Cubemarketing\Model;

class Family
{
    public $id;
    public $name;
    public $surFamily;
    public $level;
    
    public function exchangeArray($data)
    {
        $this->id = (isset($data['idFamily'])) ? $data['idFamily'] : null;
        $this->name = (isset($data['name'])) ? $data['name'] : null;
        $this->surFamily = (isset($data['idSurFamily'])) ? $data['idSurFamily'] : null;
        $this->level = (isset($data['level'])) ? $data['level'] : null;
    }
}